<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ page import="com.Interface.util.StringUtil"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ StringUtil.getHost()+ ":" + StringUtil.getPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<%@ include file="common/top.jsp"%>
<link href="css/plugins/webuploader/webuploader.css" rel="stylesheet">
<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="js/plugins/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="web/plugins/wangEditor/wangEditor.min.js"></script>
<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
<script   type="text/javascript" src="web/js/topicAdd.js"></script>
<script   type="text/javascript" src="js/common/web-upload-object.js"></script>
</head>
<body class="gray-bg top-navigation">
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg">
		<%@ include file="common/head.jsp"%>
		    <div class="ibox-content">
		        <div class="form-horizontal" id="topicForm">
		
		            <input type="hidden" id="id" value="">
		
		            <div class="row">
		                <div class="col-sm-4">
			                  <div class="form-group">
							    <label class="col-sm-3 control-label head-scu-label">封面图片</label>
							    <div class="col-sm-4">
							        <div id="cover_picPreId">
							            <div><img width="100px" height="100px"  src="images/nopic.jpg"></div>
							        </div>
							    </div>
							    <div class="col-sm-4">
							        <div class="head-scu-btn upload-btn" id="cover_picBtnId">
							            <i class="fa fa-upload"></i>上传
							        </div>
							    </div>
							    <input type="hidden" id="cover_pic"  />
							</div>
		                </div>
		                <div class="col-sm-4 b-r">
		                    <input id="type" name="type" type="hidden" value="0"/>
		                    <input id="source" name="source" type="hidden" value="1"/>
		                    <div class="form-group">
                                <label class="col-sm-2 control-label">班组</label>
                                <div class="col-sm-10">
                                    <select class="form-control " id="classId" name="classId">
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标题</label>
                                <div class="col-sm-10">
                                    <input type="text" id="title" name="title" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">介绍</label>
                                <div class="col-sm-10">
                                    <input type="text" id="indroduce" name="indroduce" class="form-control">
                                </div>
                            </div>
		                </div>
		
		                <div class="col-sm-4">
		                <div class="form-group">
                                <label class="col-sm-2 control-label">视频</label>
                                <div class="col-sm-10">
                                    <input type="text" id="videoUrl" name="videoUrl" class="form-control">
                                </div>
                         </div>
                         
                         <div class="form-group">
                                <input type="hidden" id="label">
                                <label class="col-sm-2 control-label">标签</label>
                                <div class="col-sm-10">
                                    <input type="text" id="label_val" name="label_val" class="form-control" readonly="readonly">
                                    <div class="form-group">
				                        <div class="col-sm-9" id="label_list">		                           
				                        </div>
				                        
				                    </div>
                                </div>
                         </div>
		                </div>
		            </div>
		            <div class="row">
		                <div class="form-group">
		                    <label class="col-sm-1 control-label">文章正文</label>
		                    <div class="col-sm-11">
		                        <div id="content"  class="editorHeight">
		                        </div>
		                    </div>
		                </div>
		            </div>
		
		            <div class="row btn-group-m-t">
		                <div class="col-sm-10">
		                <button type="button" class="btn btn-info " onclick="addSubmit()" id="ensure"><i class="fa fa-check"></i>&nbsp;提交</button>
		                <button type="button" class="btn btn-info " onclick="history.go(-1)" id="cancel"><i class="fa fa-eraser"></i>&nbsp;取消</button> 
		                </div>
		            </div>
		        </div>
		
		    </div>
		</div>
	</div>
</body>
</html>
